<%@include file="includes/head.jsp" %>

<% String tituloWeb = "Tirada"; %>
<%@include file="includes/content.jsp" %>
	<%
	Alumno alumno = (Alumno)request.getAttribute("alumno");
	%>
	Se ha selecionado al alumno:
	<br />
	<%=alumno.getNombre() + " " + alumno.getApellido1() + " " + alumno.getApellido2() %>
	<br /><br />
	&iquest;Desea guardar la tirada?
	<br />
	<form action="/DadoWeb/GuardarTirada" id="guardaAlumno" method="post">
	<img src="/DadoWeb/images/check.png" id="SI" alt="Si" title="Si" style="cursor: pointer" >
	<img src="/DadoWeb/images/uncheck.png" id="NO" alt="No" title="No" style="cursor: pointer" >
	<input type="hidden" name="action" id="action" value="" />
	<input type="submit" value="OK" style="display: none;" />
	</form>
<%@include file="includes/endcontent.jsp" %>

<%@include file="includes/footer.jsp" %>

<script type="text/javascript">
//Boton SI
$("#SI").click(function() {
	$( "#action" ).val( "SI" );
	$( "#guardaAlumno" ).submit();
});
		
//Boton NO
$("#NO").click(function() {
	$( "#action" ).val( "NO" );
	$( "#guardaAlumno" ).submit();
});
</script>